/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.domain;

import java.util.ArrayList;

/**
 *
 * @author Shaun McCready
 */

public class ItemShippingStatusList {

    private ArrayList<Item> itemList;
    private ArrayList<Item> shippedItems;
    private ArrayList<Item> notShippedItems;
    private Customer customer;


    public ItemShippingStatusList()
    {
        itemList = new ArrayList<Item>();
        shippedItems = new ArrayList<Item>();
        notShippedItems = new ArrayList<Item>();        
    }

    public void setItemList(ArrayList<Item> itemList) {
        for(int i = 0; i < itemList.size(); i++){
            this.itemList.add(itemList.get(i));
        }
        
    }

    public void setShippedItems(ArrayList<Item> shippedItems) {
        for(int i = 0; i < shippedItems.size(); i++) {
            this.shippedItems.add(shippedItems.get(i));
        }
    }

    public void setNotShippedItems(ArrayList<Item> notShippedItems) {
        for(int i = 0; i < notShippedItems.size(); i++) {
            this.notShippedItems.add(notShippedItems.get(i));
        }
    }

    public void setCust(Customer cust) {
        customer = new Customer(cust.getCustomerRef(), cust.getName(), cust.getAddress1(),
                cust.getAddress2(), cust.getCity(), cust.getProvince(), cust.getPostalCode(), cust.getCountry());
    }


    public Customer getCust() {
        return customer;
    }


    public ArrayList<Item> getItemList() {
        return itemList;
    }

    public ArrayList<Item> getShippedItems() {
        return shippedItems;
    }

    public ArrayList<Item> getNotShippedItems() {
        return notShippedItems;
    }

}